package com.liuliwei.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import com.liuliwei.service.HelloService;

import java.util.List;

@Component
@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        return "liuliwei====Hello : " + name;
    }

    @Override
    public void sayList(List<String> okList) {
        okList.forEach((ok) -> System.out.print(ok + "; "));

        //okList.forEach(System.out::println);
    }
}